package gamagora.game.map.parts
{
	import gamagora.box2d.OSPhysicBridge;
	import gamagora.box2d.OSPhysicCircle;
	import gamagora.box2d.OSPhysicData;
	import gamagora.box2d.OSPhysicSprite;
	import gamagora.box2d.OSPhysicWaterBridge;
	import gamagora.game.OSBoxBridge;
	import gamagora.game.OSCircleBridge;
	import gamagora.game.OSFireWall;
	import gamagora.game.OSStall;
	import gamagora.game.OSWall;
	import gamagora.game.OSWaterGenerator;
	import gamagora.game.animations.OSBird;
	import gamagora.game.map.OSLayer;
	import gamagora.game.map.OSMap;
	import gamagora.game.utils.OSImages;
	
	import org.flixel.FlxBasic;
	import org.flixel.FlxSprite;
	
	public class OSDemoMap1 extends OSMap
	{
		public function OSDemoMap1()
		{
			super(0);
		}
		
		protected override function create():void
		{
			//In Game
			_objects.push(new OSWall(-5, 0, 5, 540)); // Mur gauche invisible
			_objects.push(new OSWall(0, HEIGHT / 2, WIDTH, HEIGHT / 2));
			_objects.push(new OSWall(134, 540 - 80, 84, 80)); //Premier bloc
			_objects.push(new OSWall(218, 540 - 160, 84, 160)); //Deuxième bloc
			_objects.push(new OSWall(302, 540 - 240, WIDTH - 302, 240)); //troisième bloc
			
			_objects.push(new OSWall(510, 285, 485, 10, -30.5));// Pente
			
			//_objects.push(new OSWall(512, 540 - 255, 230, 15)); //quatrième bloc
			
			//Fire wall
			//_objects.push(new OSFireWall(490, 300, 200, 20));
			
			
			//Foreground
			_foregrounds.add(new FlxSprite(0, 0, OSImages.N1P1));
			//_foregrounds.add(new OSWaterGenerator(302, 303, 100, 540, "left"));
		}
	}
}
